# !/usr/bin/env anaconda3_2020
# @Time : 2021-3-27 13:09
# @Author : 古月水寿
# @Email : shuishou_0319@163.com

from django.urls import converters


class UsernameConverter:
    regex = '[a-zA-A0-9_-]{5, 20}'

    def to_python(self, value):

        return value
